<?php

use TwinPeaks\Core as Core;


class Cohort extends Core\CController
{
	function create()
	{
		
	}
	
    /**
     * @return void
     */
	function delete($id)
	{
		Model\Cohort::getById($id)->delete();
	}
	
	/**
	 * @return void
	 */
	function addMember($groupId, $userId)
	{
		$group = Group::getById($groupId);
		$group->checkMemeberNumberLimit();
		$group->addMember($userId);
	}
	
	function removeMemeber()
	{
		
	}
}
